<?php
namespace Service\Controller;
use Think\Controller;
class OrderController extends Controller {
	public function update_memo(){
		$sessionKey = I("sessionkey");
		$oid=I("oid");
		$msg=I("msg");
		
		Vendor("taobaosdk.top.TopClient");
		Vendor('taobaosdk.lotusphp_runtime.Logger.Logger');
		Vendor("taobaosdk.top.RequestCheckUtil");
		Vendor('taobaosdk.top.request.TradeMemoUpdateRequest');
		$c = new \TopClient;
		$c->appkey = C("SM_KEY");
		$c->secretKey = C("SM_SECRET");
		$req = new \TradeMemoUpdateRequest;
		$req->setTid($oid);
		$req->setMemo($msg);
		$req->setFlag("5");
		$resp = $c->execute($req, $sessionKey);
		echo json_encode($resp);
	}
}